package org.linlinjava.litemall.db.dao;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Update;
import org.linlinjava.litemall.db.domain.LitemallVersionHistory;

public interface LitemallVersionHistoryMapper extends MPJBaseMapper<LitemallVersionHistory> {

    @Update("UPDATE litemall_version_history SET is_new = 0 WHERE id != #{id}")
    Integer removeIsNewById(Integer id);
}
